﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DrivingAlarm.Website;
namespace DrivingAlarm
{
    public class SftMgr
    {
        WebsiteBase webWatch;
        public SftMgr(WEBSITE_TYPE webType)
        {
            webWatch = WebsiteFactory.GetWebsiteClass(webType);
        }
        public void SetParentHwnd(IntPtr hwnd)
        {
            webWatch.Hwnd_Parent = hwnd;
        }
        public void SetWatchDay(int day)
        {
            webWatch.SetWatchDay(day);
        }
        public void SetWatchInterval(int sec)
        {
            webWatch.SetWatchInterval(sec);
        }
        public void StartWatch()
        {
            webWatch.StartWatch();
        }
        public void StopWatch()
        {
            webWatch.StopWatch();
        }
        public string GetWebsiteName()
        {
            return webWatch.WebsiteName;
        }
    }
}
